import request from '@/utils/request-fund'

export function getList(page, size) {
  return request({
    method: 'GET',
    url: '/fundUser/search/' + page + '/' + size
  })
}

export function getAllUser() {
  return request({
    method: 'GET',
    url: '/fundUser'
  })
}

export function del(id) {
  return request({
    method: 'DELETE',
    url: '/fundUser/' + id
  })
}

export function add(user) {
  return request({
    method: 'POST',
    url: '/fundUser',
    data: user
  })
}

export function get(id) {
  return request({
    method: 'GET',
    url: '/fundUser/' + id
  })
}

export function update(id, user) {
  return request({
    method: 'PUT',
    url: '/fundUser/' + id,
    data: user
  })
}
